﻿using edem2simpack.Models;
using System;
using System.Data;
using System.IO;
using System.Linq;
using System.Text.RegularExpressions;
using System.Windows;
using System.Windows.Media;

namespace edem2simpack.Models
{
    public class DataUitls
    {   
        public static Window GetParentWindow(DependencyObject Source)
        {
            DependencyObject parent = VisualTreeHelper.GetParent(Source);
            while (parent != null)
            {
                if (parent is Window)
                {
                    break;
                }
                parent = VisualTreeHelper.GetParent(parent);
            }
            return (Window)parent;
        }    
    }

    public enum SheetItems
    {
        General,
        Simpack,
        Edem
    };

    public enum causality
    {
        parameter,
        input,
        output
    }

}
